import { post } from '@/utils/request'

/**
 * 新增部门
* @param pid 父级部门id
* @param name 部门名称
* @param code 部门编码
* @param managerId 部门负责人id
* @param introduce 部门介绍
* @returns
 */
export default async function postDepartment(name, code, managerId, introduce, pid) {
  const response = await post('/company/department', { name, code, managerId, introduce, pid })
  return response.data
}
